package core;

public class Wall extends Inanimate {

	public Wall() {
		super();
	}

	public Wall(int pos) {
		this();
		this.setPos(pos);
		this.setVisible(true);
	}

	/* Place wall in position index */
	public Wall(int index, int longSide, int shortSide) {
		this();
		if ((index / longSide == 0) || (index / longSide == (shortSide - 1))
				|| (index % longSide == 0)
				|| (index % longSide == (longSide - 1))) {
			this.setPos(index);
			this.setVisible(true);
		}
	}

	@Override
	public String toString() {
		return "Wall []" + super.toString();
	}

}
